package com.jiguang.property.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeInfoDTO extends BaseDTO{
    /**
     * 关键字(标题/内容/发布人)
     */
    private String keyword;

    private String title;

    private String content;

    @ApiModelProperty(value = "发布人ID")
    private String publishUserId;

    private String publishUsername;

    @ApiModelProperty(value = "0：待发布，1：已发布，2：作废")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date publishTime;

    /**
     * 发布范围
     */
    private String receiverIds;

    @TableLogic
    private Integer isDelete = 0;
}
